import Vue from 'vue'
import Vuex from 'vuex'
Vue.use(Vuex);
const myPlugin = store => {
  //console.log(store);
  // 当 store 初始化后调用
  store.subscribe((mutation, state) => {
    //console.log(mutation);
    // 每次 mutation 之后调用
    // mutation 的格式为 { type, payload }
  })
}
var store = new Vuex.Store({
  state: {

  },

  //getters,

  mutations: {

  },

  actions: {
    
  },

  //plugins: [myPlugin]
})

export default store
